<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AttributeValue extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('attribute_value',function (Blueprint $table){
            $table->increments('attr_value_id',10)->comment('属性值id');
            $table->string('attr_value_name',100)->default(0)->comment('属性值名称');
            $table->integer('attr_id')->unsigned()->comment('所属属性id');
            $table->integer('type_id')->unsigned()->comment('类型id');
            $table->tinyInteger('attr_value_sort')->unsigned()->comment('属性值排序');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
